Add a GtkFrame inside GtkActionBar
authorPaolo Borelli <pborelli@gnome.org>
Tue, 18 Feb 2014 20:34:00 +0000 (21:34 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 19 Feb 2014 03:50:36 +0000 (22:50 -0500)
This is needed to set a padding and draw a border since GtkBox does
not honour css padding yet.

https://bugzilla.gnome.org/show_bug.cgi?id=724693

gtk/resources/ui/gtkactionbar.ui

index 5a6a1982ef99fae7e45605288d92e813648fade1..8b796f8bf158b9152fcdcde44346892dc6acb702 100644 (file)
@@ -8,15 +8,21 @@
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <child>
-          <object class="GtkBox" id="center_box">
+          <object class="GtkFrame" id="frame">
             <property name="visible">True</property>
-            <property name="orientation">horizontal</property>
             <property name="can_focus">False</property>
-            <property name="border_width">0</property>
-            <property name="spacing">6</property>
             <style>
               <class name="action-bar"/>
             </style>
+            <child>
+              <object class="GtkBox" id="center_box">
+                <property name="visible">True</property>
+                <property name="orientation">horizontal</property>
+                <property name="can_focus">False</property>
+                <property name="border_width">0</property>
+                <property name="spacing">6</property>
+              </object>
+            </child>
           </object>
         </child>
       </object>